package cn.lds.j368.dsbank.service;

import cn.lds.j368.dsbank.domain.Employee;
import cn.lds.j368.dsbank.dto.RespDTO;
import cn.lds.j368.dsbank.exception.ServiceException;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface EmployeeService extends UserDetailsService {

    RespDTO<List<Employee>> selectEmpAll() throws ServiceException;

    RespDTO<Employee> selectEmpByEmpId(Integer empId) throws ServiceException;

    RespDTO addEmp(Employee employee,Integer...roles) throws ServiceException;

    RespDTO modifyEmp(Employee employee) throws ServiceException;

    RespDTO delEmpById(Integer empId) throws ServiceException;
}
